package com.retail.bbq.cola.controller;

import com.retail.bbq.cola.service.CouponService;
import com.retail.bbq.cola.vo.ResultVO;
import com.retail.bbq.cola.vo.request.CouponRequest;
import com.retail.bbq.cola.vo.request.CustomerAgreementRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("/coupon")
@Slf4j
public class CouponCouponController {

    @Resource
    private CouponService couponService;

    @RequestMapping("/customerReceiveJudge")
    public ResultVO<?> customerReceiveJudge(@RequestBody CouponRequest request) {
        return ResultVO.succ(couponService.customerReceiveJudge(request));
    }
}
